<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
      	xmlns:h="http://java.sun.com/jsf/html"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
    
	    <p:growl id="growl" showDetail="true"/>
	
       	<h:form>
		
			<p:panelGrid columns="2">  
			    <f:facet name="header">  
			        Login na Rede Social  
			    </f:facet>  
			  
			    <h:outputLabel for="nome" value="Usuário: *" />  
			    <p:inputText id="nome" value="#{loginAction.usuario.nome}" required="true" label="usuario" />  
			  
			    <h:outputLabel for="senha" value="Senha: *" />  
			    <p:password id="senha" value="#{loginAction.usuario.senha}" required="true" label="senha"/>  
			  
			    <f:facet name="footer">  
			        <p:button value="Entrar" icon="ui-icon-check" 
			        	outcome="#{loginAction.confirma()}" /> 
			        <p:button value="Cadastrar-se" icon="ui-icon-question"
			        	outcome="#{loginAction.cadastrar()}" />
			    </f:facet>  
			</p:panelGrid>  

		</h:form>

		<h:form>			
	        	
	   	</h:form>  
    </h:body>
</html>
